<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8"> 
	<title>Bootstrap 实例 - 模态框（Modal）插件</title>
	<link rel="stylesheet" href="https://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">
	<script src="https://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
	<script src="https://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
  <h2>恭喜您支付成功</h2>;
  <div id="orderTime"></div>
  </body>
  <script type="text/javascript">
     
    function tt(){
    	window.location.href="products.html";
    }
    //设定倒数秒数  
    var t = 15;  
    //显示倒数秒数  
      function showTime(){  
    	 t -= 1; 
        var m = Math.floor(t/60);//转换成分钟
        var s = t%60;//余数是秒
       document.getElementById('orderTime').innerHTML= '<h2>'+m+'分'+s+'秒跳转</h2>';  
        if(t==0){  
        	tt(); 
        }  
        //每秒执行一次,showTime()  
        setTimeout("showTime()",1000);   
       }  
       
    showTime(); 
  </script>
</html>